Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add SorobanDataBuilder to prepare sorobanData easily. #509

Merged

Conversation

overcat
Copy link
Member

@overcat overcat commented Aug 13, 2023

Closes #508

@overcat overcat marked this pull request as ready for review August 13, 2023 11:13
@overcat
Copy link
Member Author

overcat commented Aug 14, 2023

Hi @tamirms @sreuland, this PR is ready for review.

* @param metadataBytes number of extended metadata bytes (uint32)
* @return this builder instance
*/
public SorobanDataBuilder setResources(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

because all the parameters have the same type I think it could lead to mistakes where you pass in the parameters in the wrong order. Is it possible to have a Resources builder object that could be passed into setResources()?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, fixed in 9f5f231

* sorobanData
* @return this builder instance
*/
public SorobanDataBuilder setFootprint(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

because all the parameters have the same type I think it could lead to mistakes where you pass in the parameters in the wrong order. Is it possible to have a footprint builder object that could be passed into setFootprint()?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If necessary, we can remove this method and only keep setReadOnly and setReadOnly?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, that's an even better idea.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed in 4da8f81

@overcat overcat requested a review from tamirms August 14, 2023 15:37
@tamirms tamirms merged commit 4181dc0 into lightsail-network:soroban Aug 14, 2023
@overcat overcat deleted the soroban-data-builder branch August 15, 2023 00:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants